package com.ohos.connect.devicecloud.mqtt.modular.mqtt.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * MQTT登录参数
 **/
@Getter
@Setter
public class MqttLoginDTO {

    /** 账号 */
    @ApiModelProperty(value = "账号", required = true, position = 1)
    @NotBlank(message = "客户端ID不能为空")
    private String clientId;

    /** 用户名 */
    @ApiModelProperty(value = "用户名", required = true, position = 2)
    @NotBlank(message = "用户名不能为空")
    private String username;

    /** 密码 */
    @ApiModelProperty(value = "密码", required = true, position = 3)
    @NotBlank(message = "密码不能为空")
    private String password;


}
